using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace ConsoleApplication2.Models.Mapping
{
    public class dc_iconsMap : EntityTypeConfiguration<dc_icons>
    {
        public dc_iconsMap()
        {
            // Primary Key
            this.HasKey(t => t.ID);

            // Properties
            this.Property(t => t.Title)
                .HasMaxLength(50);

            // Table & Column Mappings
            this.ToTable("dc_icons");
            this.Property(t => t.ID).HasColumnName("ID");
            this.Property(t => t.Icon).HasColumnName("Icon");
            this.Property(t => t.Title).HasColumnName("Title");
            this.Property(t => t.type).HasColumnName("type");
        }
    }
}
